package aconcagua.measure

import static aconcagua.Aconcagua.INFINITY;

class InfinityIntervalStrategy extends IntervalStrategy {

	// enumerating
	@Override
	public advance(aStart, aStep) {
		return aStart + aStep;
	}

	@Override
	public advance(aStart, aSteps, aStep) {
		return aStart + (aSteps * aStep);
	}

	@Override
	public steps(aStart, aStop, aStep) {
		return INFINITY;
	}
	
	// testing
	@Override
	public isValidInterval(aStart, aStop, aStep) {
		return this.steps(aStart, aStop, aStep) >= 0;
	}
}
